import { getResPath } from '@/utils/cimup';

export default (layer: any) => {
  const { positions: points, imageUrl } = layer;
  return {
    data: {
      color: '#4dc9ff',
      imageUrl: getResPath(imageUrl),
      width: 10,
      speed: 1,
      points,
      clampToGround: true,
      tilingX: 5,
    },
  };
};
